package com.wgyspring.system.controller;

import com.wgyspring.common.core.pojo.R;
import com.wgyspring.system.entity.Test;
import com.wgyspring.system.mapper.TestMapper;
import com.wgyspring.system.service.TestService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    @Resource
    private TestService testService;

    @GetMapping
    public R<?> test() {
        return R.success(testService.list());
    }
    @GetMapping("/")
    public R<?> test1(){
        return R.success(testService.test());
    }
}
